package cn.ac.iscas.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author LJian
 * @version 1.0
 * @description: TODO
 * @date 2022/6/20 13:32
 */
@Configuration
@PropertySource("classpath:config/middleplatform.properties")
public class MiddlePlatformConfig {
    @Value("${middle.platform.get_all_datasource.url}")
    private String queryDataSourceSubjectUrl;

    @Value("${middle.platform.get_tablemeta_by_datasource.url}")
    private String queryDataSourceTablemetaUrl;

    @Value("${middle.platform.get_all_datamodels.url}")
    private String queryAllDataModelsUrl;

    @Value("${middle.platform.get_datasource_by_datamodel.url}")
    private String queryDataSourceByDataModelUrl;

    public String getQueryDataSourceSubjectUrl() {
        return queryDataSourceSubjectUrl;
    }

    public void setQueryDataSourceSubjectUrl(String queryDataSourceSubjectUrl) {
        this.queryDataSourceSubjectUrl = queryDataSourceSubjectUrl;
    }

    public String getQueryDataSourceTablemetaUrl() {
        return queryDataSourceTablemetaUrl;
    }

    public void setQueryDataSourceTablemetaUrl(String queryDataSourceTablemetaUrl) {
        this.queryDataSourceTablemetaUrl = queryDataSourceTablemetaUrl;
    }

    public String getQueryAllDataModelsUrl() {
        return queryAllDataModelsUrl;
    }

    public void setQueryAllDataModelsUrl(String queryAllDataModelsUrl) {
        this.queryAllDataModelsUrl = queryAllDataModelsUrl;
    }

    public String getQueryDataSourceByDataModelUrl() {
        return queryDataSourceByDataModelUrl;
    }

    public void setQueryDataSourceByDataModelUrl(String queryDataSourceByDataModelUrl) {
        this.queryDataSourceByDataModelUrl = queryDataSourceByDataModelUrl;
    }
}


